package com.killer.pojo;

import java.util.List;

/**
 * bean定义对象
 */
public class BeanDefinition {

    //bean id
    private String id;

    /**
     * 该bean的类型
     */
    private Class<?> clazz;

    private List<PropertyValue> propertyValues;

    /**
     * 是否需要被代理
     */
    private boolean needProxy;

    public BeanDefinition(String id, Class<?> clazz, List<PropertyValue> propertyValues,boolean needProxy) {
        this.id = id;
        this.clazz = clazz;
        this.propertyValues = propertyValues;
        this.needProxy=needProxy;
    }

    public List<PropertyValue> getPropertyValues() {
        return propertyValues;
    }

    public void setPropertyValues(List<PropertyValue> propertyValues) {
        this.propertyValues = propertyValues;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Class<?> getClazz() {
        return clazz;
    }

    public void setClazz(Class<?> clazz) {
        this.clazz = clazz;
    }

    public boolean isNeedProxy() {
        return needProxy;
    }

    public void setNeedProxy(boolean needProxy) {
        this.needProxy = needProxy;
    }
}
